/************************************************************************
 * The code is owned by mainframer.cn and Shang Tao
 * Without aproval of mainframer.cn and Shang Tao, removing the copyright
 * infomation is regarded as invassion of proprietary copyright
 ***********************************************************************/
package com.mr.qa.util.mail;

public class MailSmtpAuthenticator extends javax.mail.Authenticator
{
    private String  _user,_password;   
    public void setUserInfo(String user,String password)
    {
        _user = user;   
        _password = password;   
     }   
    public MailSmtpAuthenticator() 
    {
       
    }
    
    public MailSmtpAuthenticator(String user,String password)
    {
        _user = user;   
        _password = password;   
    }
    
     protected javax.mail.PasswordAuthentication getPasswordAuthentication()
     {   
        return  new javax.mail.PasswordAuthentication(_user,_password);
     }
}
